<?php
JunctionFileCabinet::using("Junction_Builder_Core");
JunctionFileCabinet::using("Test_Resources_Catalog");

class Test_Junction_Builder_Core extends UnitTestCase {
	
	public function testBuild() {
		$map = Junction_Builder_Core::buildMapping(Test_Resources_Catalog::fetch("GoodSchema.xml"));
		
		try {
			$map = Junction_Builder_Core::buildMapping(Test_Resources_Catalog::fetch("BadSchema.xml"));
			$this->fail();
		} catch (Junction_Core_Exception $e) {
			$this->pass();
		} catch (Exception $e) {
			$this->fail();
		}
	}
}
?>